import axiosApi from './base'

export function queryCustomersList(data) {
  return axiosApi({
    url: `/ci/cockpit/queryCustomers`,
    method: 'POST',
    data
  })
}
export function queryCustomerInfo(data) {
  return axiosApi({
    url: `/ci/cockpit/queryCustomer`,
    method: 'POST',
    data
  })
}
// 福利缴费责任
export function queryWelfareDutyList(data) {
  return axiosApi({
    url: `/ci/welfare/queryWelfareDutyList`,
    method: 'POST',
    data
  })
}
// 福利附件信息
export function queryWelfareFileList(data) {
  return axiosApi({
    url: `/ci/welfare/queryWelfareFileList`,
    method: 'POST',
    data
  })
}
// 福利列表
export function queryWelfareList(data) {
  return axiosApi({
    url: `/ci/welfare/queryWelfareList`,
    method: 'POST',
    data
  })
}
// 福利PE列表获取
export function queryWelfarePeList(data) {
  return axiosApi({
    url: `/ci/welfare/queryPeRuleInfo`,
    method: 'POST',
    data
  })
}
// pe认定列表
export function queryWelfarePeResultList(data) {
  return axiosApi({
    url: `/ci/welfare/queryPeInfo`,
    method: 'POST',
    data
  })
}
// 福利详情列表
export function queryWelfareDetailList(data) {
  return axiosApi({
    url: `/ci/welfare/queryWelfareUsedList`,
    method: 'POST',
    data
  })
}

// tob文件下载 - return link
export function previewWelfareFile(params) {
  return axiosApi({
    url: `/ci/welfare/previewWelfareFile`,
    method: 'GET',
    params
  })
}
// tob文件通过fileURL下载 - return 二进制流
export function downLoadWelfareFile(params) {
  return axiosApi({
    url: `/ci/welfare/downloadWelfareFile`,
    method: 'GET',
    responseType: 'blob',
    params
  })
}
// 福利列表导出表格
export function downloadWelfareTable(data) {
  return axiosApi({
    url: `/ci/welfare/exportData`,
    method: 'POST',
    responseType: 'blob',
    data
  })
}
// 福利列表详情导出表格
export function downloadWelfareDetailTable(data) {
  return axiosApi({
    url: `/ci/welfare/exportWelfareUsed`,
    method: 'POST',
    responseType: 'blob',
    data
  })
}
// 福利使用详情-理赔详情
export function getCoreClaimDetailUrl(params) {
  return axiosApi({
    url: `/ci/cockpit/getCorePageUrl`,
    method: 'GET',
    params
  })
}
// 预约查询
export function createReservation(data) {
  return axiosApi({
    url: `/ci/cockpit/appointment/getAppointmentPageUrl`,
    method: 'POST',
    data
  })
}
// 理赔信息查询
export function queryClaimList(data) {
  return axiosApi({
    url: `/ci/cockpit/claim/queryClaimList`,
    method: 'POST',
    data
  })
}
// 查询修正理赔信息
export function queryAmendClaimList(data) {
  return axiosApi({
    url: `/ci/cockpit/claim/queryAmendClaimList`,
    method: 'POST',
    data
  })
}
// 理赔缺件页-缺件列表
export function queryClaimMissList(data) {
  return axiosApi({
    url: `/ci/cockpit/claim/queryClaimMissList`,
    method: 'POST',
    data
  })
}
// 理赔缺件页-邮件信息
export function queryClaimEmail(data) {
  return axiosApi({
    url: `/ci/cockpit/claim/queryClaimEmail`,
    method: 'POST',
    data
  })
}

// 查询理赔子任务
export function querySubTask(params) {
  return axiosApi({
    url: `/ci/cockpit/claim/querySubTask`,
    method: 'GET',
    params
  })
}

// ob列表
export function queryObList(data) {
  return axiosApi({
    url: `/ci/cockpit/ob/queryObList`,
    method: 'POST',
    data
  })
}
// 预授权列表
export function queryPreAuth(data) {
  return axiosApi({
    url: `/ci/cockpit/queryPreAuth`,
    method: 'POST',
    data
  })
}
// 预授权加急
export function postUrgentReason(data) {
  return axiosApi({
    url: `/ci/cockpit/urgentReason`,
    method: 'POST',
    data
  })
}

// 预授权附件下载
export function downloadAuthAttachment(params) {
  return axiosApi({
    url: `/ci/cockpit/downloadPreAuthAttachment`,
    method: 'GET',
    responseType: 'blob',
    params
  })
}
// 预授权导出担保函
export function downloadPreAuthApproved(params) {
  return axiosApi({
    url: `/ci/cockpit/downloadPreAuthApproved`,
    method: 'GET',
    responseType: 'blob',
    params
  })
}
// 医院信息州/国家
export function getTerritory(data) {
  return axiosApi({
    url: `/ci/cockpit/provide/territory`,
    method: 'POST',
    data
  })
}
// 医院信息省市区
export function getProvince(data) {
  return axiosApi({
    url: `/ci/cockpit/provide/province`,
    method: 'POST',
    data
  })
}
// 医院信息查询
export function getProvider(data) {
  return axiosApi({
    url: `/ci/cockpit/provide/provider`,
    method: 'POST',
    data
  })
}
// 医院信息表单医院查询
export function getProviderQuery(data) {
  return axiosApi({
    url: `/ci/cockpit/provide/query`,
    method: 'POST',
    data
  })
}
// 医院信息身份确认函
export function exportIdentityConfirmation(data) {
  return axiosApi({
    url: `/ci/cockpit/provide/exportIdentityConfirmation`,
    method: 'POST',
    responseType: 'blob',
    data
  })
}
// 欣服务功能权限状态查询接口
export function getAuthStatus(data) {
  return axiosApi({
    url: `/ci/insured/authority/status/getAuthStatus`,
    method: 'POST',
    data
  })
}
// 智能驾舱查询理赔信息接口-多条件
export function queryClaimMoreConditionsList(data) {
  return axiosApi({
    url: `/ci/cockpit/claim/queryClaimMoreConditionsList`,
    method: 'POST',
    data
  })
}
// 智能驾舱查询理赔信息接口-导出查询结果
export function exportExcel(data) {
  return axiosApi({
    url: `/ci/cockpit/claim/exportExcel`,
    method: 'POST',
    responseType: 'blob',
    data
  })
}

// 备注信息查询接口
export function queryNotePageList(data) {
  return axiosApi({
    url: `/ci/insured/notes/page`,
    method: 'POST',
    data
  })
}
// 备注信息查询接口
export function saveNote(data) {
  return axiosApi({
    url: `/ci/insured/notes/save`,
    method: 'POST',
    data
  })
}
// 备注信息查询接口
export function getSubNoteType(data) {
  return axiosApi({
    url: `/ci/insured/notes/getChildNoteType`,
    method: 'POST',
    data
  })
}
// 获取MYMSH预约医院URL
export function getMyMSHHospitalUrl(data) {
  return axiosApi({
    url: `/ci/cockpit/appointment/getMyMSHHospitalUrl`,
    method: 'POST',
    data
  })
}

//预授权申请附件上传文件
export function preAuthUploadFile(data) {
  return axiosApi({
    url: `/ci/insured/preAuth/preUploadFile`,
    method: 'POST',
    data
  })
}
export function preAuthApply(data) {
  return axiosApi({
    url: `/ci/insured/preAuth/apply`,
    method: 'POST',
    data
  })
}
//预授权申请文件下载
export function preAuthDownloadFile(id) {
  return axiosApi({
    url: `/ci/insured/preAuth/preAuthDownload?id=${id}`,
    method: 'GET',
    responseType: 'blob'
  })
}

// 根据被保险人信息查询ob信息
export function queryObListByInsuredInfo(data) {
  return axiosApi({
    url: `/ci/cockpit/ob/queryObListByInsuredInfo`,
    method: 'POST',
    data
  })
}
// 根据会员id和customerId查询就诊人姓名
export function queryVisitorName(params) {
  return axiosApi({
    url: `/ci/cockpit/claim/queryVisitorNameList`,
    method: 'GET',
    params
  })
}
